package com.hzy.yiyaoba.utils;

public class Config {

	public static final boolean DEBUG_MODE = true;

	public static final int HTTP_TIMEOUT = 15000;
	public static final int REFRESH_TIMEOUT = 20000;
	public static final String URL_BASE = "http://api.yi18.net";
	public static final String URL_PIC_PRIX = "http://www.yi18.net/";

	public static final String JSON_SUCCESS = "success";
	public static final String JSON_CONTENT = "yi18";

	public static class LoreConfig {
		// 取得知识信息列表
		public static String URL_LIST = URL_BASE + "/lore/list";
		// 取得知识分类列表
		public static String URL_CLASS = URL_BASE + "/lore/loreclass";
		// 取得知识信息详细
		public static String URL_SHOW = URL_BASE + "/lore/show";
		// 搜索知识
		public static String URL_SEARCH = URL_BASE + "/lore/search";
		// lore class
		public static final String JSON_ID = "id";
		public static final String JSON_NAME = "name";
		// lore
		public static final String JSON_TITLE = "title";
		public static final String JSON_IMG = "img";
		public static final String JSON_COUNT = "count";
		public static final String JSON_FCOUNT = "fcount";
		public static final String JSON_RCOUNT = "rcount";
		public static final String JSON_AUTHOR = "author";
		public static final String JSON_LORE_CLASS = "loreclass";
		public static final String JSON_CLASS_NAME = "className";
		public static final String JSON_MD = "md";
		public static final String JSON_TIME = "time";
		public static final String JSON_MESSAGE = "message";

		// 请求页数，默认是1
		public static final String KEY_PAGE = "page";
		// 每页返回的条数，默认是20
		public static final String KEY_LIMIT = "limit";
		// 排序方式 id：最新时间，count：访问最多，默认是id，按最新时间。
		public static final String KEY_TYPE = "type";
		public static final String TYPE_ID = "id";
		public static final String TYPE_COUNT = "count";
		// id：这里是指知识分类的ID 默认为 null ，也就是全部。
		public static final String KEY_ID = "id";
		// 用于传递LoreId
		public static final String EXTRA_LORE_ID = "extra_lore_id";
		public static final String EXTRA_IMAGE_URL = "extra_image_url";
	}

	public static class AskConfig {

	}

	public static class BookConfig {

	}
}
